import java.util.Observable;

public class Player extends Observable implements DisplayablePlayer {

	private String mName, mColor;
	private int mFamePoints, mOneRiceTiles, mOneVillageTiles, mTwoTiles,
			mDevelopersOffBoard, mActionTokens;

	public Player(String name, String color) {
		mName = name;
		mColor = color;
		mFamePoints = 0;
		mOneRiceTiles = 3;
		mOneVillageTiles = 2;
		mTwoTiles = 5;
		mDevelopersOffBoard = 12;
		mActionTokens = 3;
	}

	public void molestStats(int famepoints, int oneRiceTiles,
			int oneVillageTiles, int twoTiles, int developersOffBoard,
			int actionTokens) {
		mFamePoints += famepoints;
		mOneRiceTiles += oneRiceTiles;
		mOneVillageTiles += oneVillageTiles;
		mTwoTiles += twoTiles;
		mDevelopersOffBoard += developersOffBoard;
		mActionTokens += actionTokens;
		this.setChanged();
		this.notifyObservers();
	}

	@Override
	public String getName() {
		return mName;
	}

	@Override
	public String getColor() {
		return mColor;
	}

	@Override
	public int getFamePoints() {
		return mFamePoints;
	}

	@Override
	public int getOneRiceTiles() {
		return mOneRiceTiles;
	}

	@Override
	public int getOneVillageTiles() {
		return mOneVillageTiles;
	}

	@Override
	public int getTwoTiles() {
		return mTwoTiles;
	}

	@Override
	public int getDevelopersOffBoard() {
		return mDevelopersOffBoard;
	}

	@Override
	public int getActionTokens() {
		return mActionTokens;
	}

}
